package com.neouton.common.controller;

import com.neouton.common.util.ResponseAPI;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("sysVer")
@RestController
public class SystemVersion {

    @Value("${project.version}")
    private String version;

    @GetMapping("getV")
    public ResponseAPI getCurrentSystemVersion() {
        return ResponseAPI.successData(version);
    }
}
